set(incs . 
    inc
	../../../../components/bk_thirdparty/sysdev/inc
	../../../../components/bkwl_device/bkwl_bt/inc
    ../../../../components/bkwl_device/bkwl_camera/inc
    ../../../../components/bkwl_device/bkwl_common/inc
    ../../../../components/bkwl_device/bkwl_data/inc
    ../../../../components/bkwl_device/bkwl_http/inc
    ../../../../components/bkwl_device/bkwl_lcd/inc
    ../../../../components/bkwl_device/bkwl_mqtt/inc
    ../../../../components/bkwl_device/bkwl_network/inc
    ../../../../components/bkwl_device/bkwl_uart/inc
    ../../../../bk_idk/components/bk_bluetooth/bt/ble_boarding
)
 
set(srcs app_main.c)

if (CONFIG_SYS_CPU0)
list(APPEND srcs
    src/bkwl_app.c
    src/bkwl_doorbell_sibo.c
    src/bkwl_doorbell_main_yb.c
    src/bkwl_doorbell_main_jiwei.c
    
)
endif()

if (CONFIG_INTEGRATION_DOORBELL_CS2)
list(APPEND srcs
	src/doorbell_cs2_service.c
)
endif()

set(priv_req bk_init bt media_service lwip_intf_v2_1)


if ("${ARMINO_SOC}" STREQUAL "bk7256") 
list(APPEND priv_req media cs2p2p aud_intf)
endif()

if ("${ARMINO_SOC}" STREQUAL "bk7258")
list(APPEND priv_req multimedia cs2p2p)
endif()

if (CONFIG_OVERRIDE_FLASH_PARTITION)
	list(APPEND srcs
		vendor_flash.c
	)
endif()

armino_component_register(
	SRCS "app_main.c" "${srcs}"
	INCLUDE_DIRS "${incs}"
	PRIV_REQUIRES "${priv_req}" wifi_transfer
)

